package org.example.exp2.exam9;

import org.example.exp2.exam8.classAdapter.DataOperator;
import org.example.exp2.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        Image image = (Image) XMLUtil.getBean(
                "src/test/java/org/example/exp2/exam9/config.xml",
                "ImageType");

        Filter filter = (Filter) XMLUtil.getBean(
                "src/test/java/org/example/exp2/exam9/config.xml",
                "FilterType");

        image.setFilter(filter);
        image.paint();
    }
}
